<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <lk-box><a href="http://www.baidu.com">百度一下</a></lk-box>
      <lk-box><button>哈哈</button></lk-box>
      <lk-box><img src=""></lk-box>
    </div>
    <template id="box">

      <div style="background-color: red; width: 200px; height: 200px; margin: 20px;">
        <h2>哈哈</h2>
        <p>haha</p>
        <!-- <button>yoxi</button> -->
        <!-- 预留插槽 -->        
        <slot>默认内容</slot>
        
      </div>
    </template>

    <script src="../js/vue.js"></script>

    <script>
      const LKbox = {
        template:"#box"
      };

      const app = Vue.createApp({
        data() {
          return {
            
          }
        },
        components:{
          'lk-box': LKbox
        }
      }).mount("#app");
    </script>
  </body>
</html>